package com.xiaoq.shop.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author xinpeng created on 16/9/26-下午4:22.
 */


public class CouponDTO implements Serializable {


    private String couponTemplateCode;

    private String shopId;

    private int denomination; //面额

    private int minSpendingAmountForUse; //可以使用此优惠券的最低消费金额

    private int state;  //状态,0,未使用,1,已使用,2,已过期

    private Long effectiveDate; //生效日期

    private Long expirationDate; //失效日期

    private String title; //优惠券标题

    public String getCouponTemplateCode() {
        return couponTemplateCode;
    }

    public void setCouponTemplateCode(String couponTemplateCode) {
        this.couponTemplateCode = couponTemplateCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public int getDenomination() {
        return denomination;
    }

    public void setDenomination(int denomination) {
        this.denomination = denomination;
    }

    public int getMinSpendingAmountForUse() {
        return minSpendingAmountForUse;
    }

    public void setMinSpendingAmountForUse(int minSpendingAmountForUse) {
        this.minSpendingAmountForUse = minSpendingAmountForUse;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Long getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(Long effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public Long getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Long expirationDate) {
        this.expirationDate = expirationDate;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
